{ "metadata": { "kernelspec": { "codemirror_mode": "scheme", "display_name": "Scheme", "language": "scheme", "name": "calico_scheme_kernel" }, "name": "", "signature": "sha256:12af8934b1690915dff5a76a606cdf1cc6a2156d017a5852dc9a1403a185e9c4" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "code", "collapsed": false, "input": [ "(import-as \"calico.widgets\" '*)\n", "(import-as \"calico.display\" 'display)" ], "language": "python", "metadata": {}, "outputs": [ { "metadata": {}, "output_type": "pyout", "prompt_number": 8, "text": [ "(display)" ] } ], "prompt_number": 8 }, { "cell_type": "code", "collapsed": false, "input": [ "(define gc (GoogleChart \"BarChart\" '(\"Year\" \"Sales\" \"Expenses\") \n", " '((\"2004\" 1000 400)\n", " (\"2005\" 1170 460)\n", " (\"2006\" 660 1120)\n", " (\"2007\" 1030 540))))\n", "(display.display gc)" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "display_data", "text": [ "" ] } ], "prompt_number": 9 }, { "cell_type": "code", "collapsed": false, "input": [ "(define gc (GoogleChart \"BarChart\" '() \n", " '((\"2004\" 1000 400)\n", " (\"2005\" 1170 460)\n", " (\"2006\" 660 1120)\n", " (\"2007\" 1030 540))))\n", "(display.display gc)" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "display_data", "text": [ "" ] } ], "prompt_number": 10 }, { "cell_type": "code", "collapsed": false, "input": [ "(define gc (GoogleChart \"ScatterChart\" '() \n", " '((1000 400)\n", " (1170 460)\n", " (660 1120)\n", " (1030 540))))\n", "(display.display gc)" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "display_data", "text": [ "" ] } ], "prompt_number": 12 }, { "cell_type": "code", "collapsed": false, "input": [ "(GoogleChart \"Histogram\" '() '(6 7 8 9 3 2 6))" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 13, "text": [ "" ] } ], "prompt_number": 13 }, { "cell_type": "code", "collapsed": false, "input": [ "(define gc (GoogleChart \"AreaChart\" '() '(6 7 8 9 3 2 6)))" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 15 }, { "cell_type": "code", "collapsed": false, "input": [ "gc" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 16, "text": [ "" ] } ], "prompt_number": 16 }, { "cell_type": "code", "collapsed": false, "input": [ "(define gc (GoogleChart \"ScatterChart\" '() '(6 7 8 9 3 2 6)))" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 17 }, { "cell_type": "code", "collapsed": false, "input": [ "gc" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 18, "text": [ "" ] } ], "prompt_number": 18 }, { "cell_type": "code", "collapsed": false, "input": [ "(GoogleChart \"PieChart\" '() '((\"Pie I have eaten\" .33) (\"Pie I have not yet eaten\" .67)))" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 20, "text": [ "" ] } ], "prompt_number": 20 }, { "cell_type": "code", "collapsed": false, "input": [ "(GoogleChart \"LineChart\" '() '(6 7 8 9 3 2 6))" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 21, "text": [ "" ] } ], "prompt_number": 21 }, { "cell_type": "code", "collapsed": false, "input": [ "(GoogleChart \"ColumnChart\" '() '(6 7 8 9 3 2 6))" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 24, "text": [ "" ] } ], "prompt_number": 24 }, { "cell_type": "code", "collapsed": false, "input": [ "(GoogleChart \"BarChart\" '() '[6 7 8 9 3 2 6])" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 25, "text": [ "" ] } ], "prompt_number": 25 }, { "cell_type": "code", "collapsed": false, "input": [], "language": "python", "metadata": {}, "outputs": [] } ], "metadata": {} } ] }